createInfiniteScroll

fun createInfiniteScroll(configurationID: String, scrollView: ViewGroup, scrollItemAdWrapperTag: String, lifecycleCallbacks: <Error class: unknown class>? = null): Int

Adds banner and video banner type of ads to scrollView infinite scroll. Ads are placed inside of an infinite scrolls individual item. Number and frequency of ads shown are set by the configuration corresponding to configurationID

Return

Int the id of the infinite scroll for the factory to manage it

Parameters

configurationID

id used to fetch the unit configuration

scrollView

View of infinite scroll

scrollItemAdWrapperTag

Tag of a wrapper inside of an infinite scroll item

lifecycleCallbacks

(optional) go to BannerEventListener to know when the callbacks are called